# nginx.sh
#root@ubuntu:/home/wuchunlong# ./nginx_4.sh

mkdir -p ~/download && cd ~/download
wget http://nginx.org/download/nginx-1.18.0.tar.gz
apt install -y gcc  libpcre3 libpcre3-dev build-essential zlib1g zlib1g-dev openssl libssl-dev
tar -xvf nginx-1.18.0.tar.gz && cd nginx-1.18.0
apt-get install -y make
./configure \
--prefix=/usr/local/nginx \
--sbin-path=/usr/local/nginx/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
make
make install
nginx -v